<?php
namespace app\crontab\command;

use think\console\Command;
use think\console\Input;
use think\console\Output;

class Task extends Command {
    protected function configure()
    {
        $this->setName('Task')
            ->setDescription('1分钟添加1条数据进test表');
    }

    protected function execute(Input $input, Output $output)
    {
        $task = new \app\share\model\Task();
        return $task->test1();
    }
}
